package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {
    //分页查询
    PageResult findPage(QueryPageBean queryPageBean);

    //增
    void add(Permission permission);
    //删
    void delete(Integer id);
    //改
    void edit(Permission permission);
    //查
    List<Permission> findAll();

    //id查询权限 回显
    Permission findById(Integer id);
}
